<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@page import="java.util.Date"%>
<%@ include file="../../admin.inc.jsp"%>

<body>
	<div class="pageContent">
	<div id="jbsxBox2" class="unitBox" style="float:left; display:block; overflow:auto; width:514px;">
	<input type="hidden" name="userId" id="userId" value="${userId}"/>
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="icon"  title="所有角色" readonly = "true">
               <span>所有角色</span>
            </a></li>
		</ul>
	</div>
	<div class="grid" layouth="65" style="width: 509px; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="70">角色名称</th>
				<th width="30">操作</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list}">
				<tr target="roleId" rel="${item.id}" style="">
					<td>${item.name}</td>
					<td>
					<a title="添加角色" target="ajaxTodo" href="${webContextPath}/admin/adminUserRole/addUserRole?userId=${userId}&roleId=${item.id}&description=${item.name}" class="btnAdd">添加角色</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	</div>
	
	<div id="jbsxBox3" class="unitBox" style="margin-left:520px;">
		<div class="panelBar">
		<ul class="toolBar">
			<li><a class="icon"  title="已有角色" readonly = "true">
               <span>已有角色</span>
            </a></li>
		</ul>
	</div>
	<div class="grid" layouth="65" style="width: 549px; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="70">角色名称</th>
				<th width="30">操作</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list2}">
				<tr target="moduleId" rel="${item.id}" style="">
					<td>${item.description}</td>
					<td>
					<a title="删除角色" target="ajaxTodo" href="${webContextPath}/admin/adminUserRole/deleteSingleRole?id=${item.id}" class="btnDel">删除角色</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	</div>
</div>
</body>